package com.zkh.myutils.database.dbpool;

/**
 * 数据库信息对象
 * @author zkh
 */
public class DataBaseInfo {
	//驱动
	private String driver;
	//URL
	private String url;
	//帐号
	private String username;
	//密码
	private String password;
	//数据库类型
	private DBType dbtype;
	
	public DataBaseInfo(String driver, String url, String username, String password, DBType dbtype) {
		this.driver = driver;
		this.url = url;
		this.username = username;
		this.password = password;
		this.dbtype = dbtype;
	}
	
	public String getDriver() {
		return driver;
	}
	public String getUrl() {
		return url;
	}
	public String getUsername() {
		return username;
	}
	public String getPassword() {
		return password;
	}
	public DBType getDbtype() {
		return dbtype;
	}

	@Override
	public String toString() {
		return "DataBaseInfo [driver=" + driver + ", url=" + url + ", username="
				+ username + ", password=" + password + ", dbtype=" + dbtype
				+ "]";
	}
}
